//
//  NSObject+FKAdd.m
//  FKNetWorking
//
//  Created by 云眼科技 on 16/7/19.
//  Copyright © 2016年 CloudEyes. All rights reserved.
//

#import "NSObject+FKAdd.h"

dispatch_queue_t fk_get_global_queue(){
    return dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
    
}
void fk_run_main_queue(void (^block)()){
    dispatch_async(dispatch_get_main_queue(), block);
}

void fk_run_global_queue(void (^block)()){
    dispatch_async(fk_get_global_queue(), block);
}




@implementation NSObject (FKAdd)


-(void)fk_main_queue:(void (^)())block{
    dispatch_async(dispatch_get_main_queue(), block);
}

@end
